package com.ruoyi.hospital.service.operation.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.hospital.mapper.operation.OperationAdvisoryPriceMapper;
import com.ruoyi.hospital.domain.operation.OperationAdvisoryPrice;
import com.ruoyi.hospital.service.operation.IOperationAdvisoryPriceService;

/**
 * 咨询价格管理Service业务层处理
 * 
 * @author wendao
 * @date 2024-09-13
 */
@Service
public class OperationAdvisoryPriceServiceImpl implements IOperationAdvisoryPriceService 
{
    @Autowired
    private OperationAdvisoryPriceMapper operationAdvisoryPriceMapper;

    /**
     * 查询咨询价格管理
     * 
     * @param id 咨询价格管理主键
     * @return 咨询价格管理
     */
    @Override
    public OperationAdvisoryPrice selectOperationAdvisoryPriceById(Integer id)
    {
        return operationAdvisoryPriceMapper.selectOperationAdvisoryPriceById(id);
    }

    /**
     * 查询咨询价格管理列表
     * 
     * @param operationAdvisoryPrice 咨询价格管理
     * @return 咨询价格管理
     */
    @Override
    public List<OperationAdvisoryPrice> selectOperationAdvisoryPriceList(OperationAdvisoryPrice operationAdvisoryPrice)
    {
        return operationAdvisoryPriceMapper.selectOperationAdvisoryPriceList(operationAdvisoryPrice);
    }

    /**
     * 新增咨询价格管理
     * 
     * @param operationAdvisoryPrice 咨询价格管理
     * @return 结果
     */
    @Override
    public int insertOperationAdvisoryPrice(OperationAdvisoryPrice operationAdvisoryPrice)
    {
        operationAdvisoryPrice.setCreateTime(DateUtils.getNowTimeSecond());
        return operationAdvisoryPriceMapper.insertOperationAdvisoryPrice(operationAdvisoryPrice);
    }

    /**
     * 修改咨询价格管理
     * 
     * @param operationAdvisoryPrice 咨询价格管理
     * @return 结果
     */
    @Override
    public int updateOperationAdvisoryPrice(OperationAdvisoryPrice operationAdvisoryPrice)
    {
        operationAdvisoryPrice.setUpdateTime(DateUtils.getNowTimeSecond());
        return operationAdvisoryPriceMapper.updateOperationAdvisoryPrice(operationAdvisoryPrice);
    }

    /**
     * 批量删除咨询价格管理
     * 
     * @param ids 需要删除的咨询价格管理主键
     * @return 结果
     */
    @Override
    public int deleteOperationAdvisoryPriceByIds(Integer[] ids)
    {
        return operationAdvisoryPriceMapper.deleteOperationAdvisoryPriceByIds(ids);
    }

    /**
     * 删除咨询价格管理信息
     * 
     * @param id 咨询价格管理主键
     * @return 结果
     */
    @Override
    public int deleteOperationAdvisoryPriceById(Integer id)
    {
        return operationAdvisoryPriceMapper.deleteOperationAdvisoryPriceById(id);
    }
}
